package com.fc.v2.service;

import com.fc.v2.common.base.BaseService;
import com.fc.v2.mapper.auto.TsysMySearchMapper;
import com.fc.v2.model.auto.TsysMySearch;
import com.fc.v2.model.auto.TsysMySearchExample;
import com.fc.v2.model.auto.TsysUser;
import com.fc.v2.model.auto.TsysUserExample;
import com.fc.v2.model.custom.Tablepar;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MySearchService implements BaseService<TsysMySearch, TsysMySearchExample>  {
    @Autowired
    private TsysMySearchMapper tsysMySearchMapper;


    public PageInfo<TsysMySearch> list(Tablepar tablepar){
        PageHelper.startPage(tablepar.getPage(), tablepar.getLimit());
        List<TsysMySearch> list= tsysMySearchMapper.selectByName(tablepar.getSearchText());
        PageInfo<TsysMySearch> pageInfo = new PageInfo<TsysMySearch>(list);
        return  pageInfo;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return 0;
    }

    @Override
    public int insertSelective(TsysMySearch record) {
        return 0;
    }

    @Override
    public TsysMySearch selectByPrimaryKey(String id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(TsysMySearch record) {
        return 0;
    }

    @Override
    public int updateByExampleSelective(TsysMySearch record, TsysMySearchExample example) {
        return 0;
    }

    @Override
    public int updateByExample(TsysMySearch record, TsysMySearchExample example) {
        return 0;
    }

    @Override
    public List<TsysMySearch> selectByExample(TsysMySearchExample example) {
        return null;
    }

    @Override
    public long countByExample(TsysMySearchExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(TsysMySearchExample example) {
        return 0;
    }
}
